//package learn_project;
//
//import java.sql.Connection;
//import java.sql.PreparedStatement;
//import java.sql.ResultSet;
//import java.util.ArrayList;
//import java.util.List;
//
///**
// * @author Vv
// * @version 1.0
// * @project coding_learn
// * @description
// * @date 2023/9/25 10:11:44
// */
//public class BusinessDaoImpl implements BusinessDao{
//    private Connection con = null;
//    private PreparedStatement pst = null;
//    private ResultSet rs = null;
//    @Override
//    public List<Business> listBusiness(String businessName, String businessAddress) {
////        List<Business> list = new ArrayList<>();
////        StringBuffer sql = new StringBuffer("select * from business where 1 = 1");
////        if(businessName != null && !businessName.equals("")){
////            sql.append(" and businessName like '%" + businessName +"%' ");
////        }
////        if(businessAddress!= null && !businessAddress.equals("")){
////            sql.append(" and businessAddress like '%" + businessAddress + "%' ");
////        }
////        con = DBUtil.ge
//        return null;
//    }
//
//    @Override
//    public int saveBusiness(String businessName) {
//        return 0;
//    }
//
//    @Override
//    public int removeBusiness(int businessId) {
//        return 0;
//    }
//
//    @Override
//    public Business getBusinessByInByPass(Integer businessId, String password) {
//        return null;
//    }
//
//    @Override
//    public Business getBusinessById(Integer businessId) {
//        return null;
//    }
//
//    @Override
//    public int updateBusiness(Business business) {
//        return 0;
//    }
//
//    @Override
//    public int updateBusinessByPassword(Integer businessId, String passwod) {
//        return 0;
//    }
//}
